package com.xwj.data;

/**
 * Created by xuweijie on 2018/1/26.
 * 静态数据
 */
public class StaticData {

    /**
     * 默认每页显示数量
     */
    public static final int PAGE_SIZE = 10;

    /**
     * 未正式确认前订单有效期
     */
    public static final int ORDER_EFFECT_DAYS = 3;

    /**
     * 未确认的订单状态id
     */
    public static final int ORDER_STATUS_NO_CONFIRM = 0;

    /**
     * 长期租房标识
     */
    public static final String LONG_TIME_STR = "长期";

    /**
     * 长期租房的最低期限
     */
    public static final int LONG_TIME_RENT_LEASE = 6;

    /**
     * 前台登陆缓存用户id
     */
    public static final String REGISTER_USER_LOGIN_ATTRIBUTE = "registerUser_accountid";

    /**
     * 前台登陆缓存用户信息
     */
    public static final String REGISTER_USER_DATA = "registerUser_data";

    /**
     * 后台登陆缓存用户id
     */
    public static final String ADMIN_USER_LOGIN_ATTRIBUTE = "adminUser_accountid";

    /**---------------------------高德云图-----------------------------------------------*/

    /**
     * 请求的key
     */
    public static final String KEY = "8c2ce4d2044e6c67b1daaae8c9121059";

    /**
     * 云图表格id
     */
    public static final String CLOUD_TABLE_ID = "596eb6ebafdf521e86bc3b50";

    /**
     * 创建数据(单条)
     */
    public static final String ADD_ONE_DATA_TO_CLOUD_URL = "http://yuntuapi.amap.com/datamanage/data/create";

    /**
     * 单条/批量删除
     */
    public static final String DELETE_DATA_FROM_CLOUD_URL = "http://yuntuapi.amap.com/datamanage/data/delete";

    /**
     * 更新
     */
    public static final String UPDATE_DATA_FROM_CLOUD_URL = "http://yuntuapi.amap.com/datamanage/data/update";

    /**
     * ---------------------------消息队列-----------------------------------------------
     */

    //订单
    public static final String AMQP_MQ_ORDER_EXCHANGE = "topicOrderExchange";

    public static final String AMQP_MQ_QUEUE_TOPIC_ADD_ORDER = "topic.addOrder";

    /**
     * ---------------------------笑话大全-----------------------------------------------
     */

    public static final String JOKE_APP_ID = "65893";

    public static final String JOKE_APP_SECRET = "7226ad97d73b41d5b3dfeb96eba04fe8";

    public static final String JOKE_API_URL = "http://route.showapi.com/341-1?showapi_appid=" + JOKE_APP_ID + "&showapi_sign=" + JOKE_APP_SECRET;

    public static final String JOKE_MAX_RESULT = "1";

}
